package com.yicong.ants.bean.order;

/**
 * 卡商品
 *
 * @author cch
 * @version 2020/2/22
 */
public class CardHistory {
    String total_amount;
    String goods_name;
    String pay_time;
    int pay_method;
    String ordersn;

    public CardHistory() {
    }

    public String getPay_method() {
        return pay_method == 1 ? "支付宝" : "微信";
    }

    public String getTotal_amount() {
        return this.total_amount;
    }

    public String getGoods_name() {
        return this.goods_name;
    }

    public String getPay_time() {
        return this.pay_time;
    }

    public String getOrdersn() {
        return this.ordersn;
    }

    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setPay_time(String pay_time) {
        this.pay_time = pay_time;
    }

    public void setPay_method(int pay_method) {
        this.pay_method = pay_method;
    }

    public void setOrdersn(String ordersn) {
        this.ordersn = ordersn;
    }

    public String toString() {
        return "CardHistory(total_amount=" + this.getTotal_amount() + ", goods_name=" + this.getGoods_name() + ", pay_time=" + this.getPay_time() + ", pay_method=" + this.getPay_method() + ", ordersn=" + this.getOrdersn() + ")";
    }
}
